<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for循环对象数组</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    <p>双重循环对象数组</p>
    <p v-for="stu in students">
        <span v-for="v in stu">{{v}}&nbsp;</span>
    </p>
</div>
<script>
    new Vue({
        el: "#app",
        data: {
            students: [
                {
                    name: 'AAA',
                    age: 18
                },
                {
                    name: 'BBB',
                    age: 19
                },
                {
                    name: 'CCC',
                    age: 18
                }
            ]
        }
    });
</script>
</body>
</html>